<?php
/**
 * <!-- 全局js css-->
 * Created by PhpStorm.
 * User: lzyma
 * Date: 2018-05-05
 * Time: 2:00.
 */

namespace backend\assets;

use yii;

class PubAsset extends \yii\web\AssetBundle
{
    //<!-- 全局css -->
    public $css = [
        'css/animate.css',
        'css/style.css',
        'css/Pubstyle.css',
    ];
    //<!-- 全局js -->
    public $js = [
        'js/PubJs.js',
    ];
    //<!-- yii2框架样式 -->
    public $depends = [
        'backend\assets\plugins\FontAwesomeAsset',
        'backend\assets\plugins\BootstrapAsset',
    ];

    public function init()
    {
        parent::init();
        if ('' !== yii::$app->getRequest()->getBaseUrl()) {
            $this->sourcePath = '@backend/web/static/private';
        }
    }
}
